using System.Collections.Generic;

public partial class ObserverId
{
    private static Dictionary<int, string> nameDic;
    static ObserverId()
    {
        nameDic = UFrame.RefectionTool.InitSelfIncrementWithNameDict<ObserverId>(true);
    }

    public static string GetObserverName(int observerId)
    {
        nameDic.TryGetValue(observerId, out string name);
        return name;
    }
}